package generic;

public class GenericArrayTest {
    public static void main(String[] args) {
        System.err.println("generic array start");
        ArrayTestChild[] strs = new ArrayTestChild[10];
        ArrayTest[] array = strs;
        Object[] objects = strs;
        objects[0] = new ArrayTestChild();
        System.err.println("objects[0] = " + objects[0]);
        System.err.println("generic array end");
    }

    static class ArrayTest {

    }

    static class ArrayTestChild extends ArrayTest {
    }
}
